package com.ly.user_system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ly.user_system.code.BaseEntity;
import com.ly.user_system.detail.BaseSysMenuDetail;
import com.ly.user_system.dto.BaseSysMenuDTO;
import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMappers;
import lombok.Data;

@TableName("base_sys_menu")
@Data
@AutoMappers({
        @AutoMapper(target = BaseSysMenuDTO.class),
        @AutoMapper(target = BaseSysMenuDetail.class)
})
public class BaseSysMenu extends BaseEntity {


    @TableField("parent_id")
    private Long parentId;
    @TableField("name")
    private String name;
    @TableField("perms")
    private String perms;
    @TableField("type")
    private Integer type;
    @TableField("icon")
    private String icon;
    @TableField("order_num")
    private Integer orderNum;
    @TableField("router")
    private String router;
    @TableField("view_path")
    private String viewPath;
    @TableField("keep_alive")
    private Boolean keepAlive;
    @TableField("is_show")
    private Boolean isShow;
}